#include <iostream>
#include <string>
using namespace std;

int main()
{
	string s1("1111111");
	cout << sizeof(s1) << endl;

	return 0;
}

int main1()
{
	string s1;
	size_t old = s1.capacity();
	cout << "capacity: " << old << endl;

	for (size_t i = 0; i < 100; i++)
	{
		s1 += 'x';
		if (s1.capacity() != old)
		{
			cout << "capacity: " << s1.capacity() << endl;
			old = s1.capacity();
		}
	}

	return 0;
}